<?php
	class SubjectController
	{
		private $d;
		public function __construct()
		{
			$this->d = new DbHelper();
		}
		public final function getSubjectById($id)
		{
			$s = "SELECT * FROM Subjects WHERE Id = $id";
			$this->d->query($s);
		}
		public final function getAllSubjects()
		{
		  $s = "SELECT * FROM Subjects";
			return $this->d->query($s);
		}
	}
?>